package com.samphanie.auiu.http.api

import com.samphanie.auiu.http.ApiFactory
import com.samphanie.auiu.library.restful.AuiuCall
import com.samphanie.auiu.library.restful.annotation.Get
import com.samphanie.auiu.model.CourseNotice
import com.samphanie.auiu.model.Notice
import org.json.JSONObject

/**
 * @author Dries
 **/
interface ProfileApi {

    @Get("/auiu-app/v1/open_api/banner/list")
    fun bannerNoticeList(): AuiuCall<List<Notice>>

    @Get("/auiu-app/v1/open_api/notify/list")
    fun notice(): AuiuCall<CourseNotice>

    companion object {
        fun create(): ProfileApi {
            return ApiFactory.create(ProfileApi::class.java)
        }
    }
}

fun profileApiService(): ProfileApi {
    return ProfileApi.create()
}